<template>
  <div class="up">
    <span class="iconfont icon-shangyiyehoutuifanhui"   @click="$router.go(-1)"  v-show="isShow"></span>
    <p>{{textName}}</p>
  </div>
</template>

<script>
export default {
  name: 'Header',
  props:['textName'],
  computed:{
    isShow(){
      // console.log('')
      return this.$route.name == 'search' ? true : false  || this.$route.name == 'searchresult' ? true : false
    }
  }
}
</script>

<style lang='less' scoped>
* {
    margin: 0;
    padding: 0;
  }
  .up{
    width: 100%;
    height: 140px;
    background-color: #9f8052;
    padding-top:60px;
    box-sizing: border-box;
    padding-left: 24px;
    position: fixed;
    z-index: 999;
    display: flex;
    // margin-top: -140px;

    p{
      font-size: 36px;
      color: white;
      font-weight: 500;
    }
    span{
      font-size:50px;
      margin-right: 10px;
      color: white;

    }
  }
</style>
